package cc.customer.phoneTask.domain;

import cc.customer.common.annotation.ExportConfig;
import cc.customer.common.utils.DateUtil;

import java.util.Date;
import javax.persistence.*;

@Table(name = "c_phone_task")
public class CPhoneTask {
    @Id
    @Column(name = "sp_id")
    private Integer spId;

    @Column(name = "sp_uuids")
    private String spUuids;

    @Column(name = "sp_uuid")
    private String spUuid;

    /**
     * 导入批次
     */
    @Column(name = "sp_batch")
    private String spBatch;

    /**
     * 客户名称
     */
    @Column(name = "sp_name")
    @ExportConfig("联系姓名")
    private String spName;

    /**
     * 客户电话
     */
    @Column(name = "sp_phone")
    @ExportConfig("联系电话")
    private String spPhone;
    /**
     * 跟踪人
     */
    @Column(name = "sp_recer")
    private String spRecer;
    /**
     * 最新录音文件
     */
    @Column(name = "sp_record_url")
    private String spRecordUrl;

    @Column(name = "sp_last_record")
    private String spLastRecord;

    @Column(name = "sp_totle_record")
    private Integer spTotleRecord;

    /**
     * 1:空号2:未接听3:关机4:停机 5有意向 6无意向7 不是本人8：再考虑
     */
    @Column(name = "sp_status")
    private String spStatus;

    /**分配状态**/
    @Column(name = "sp_status_fen")
    private String spStatusFen;
    /**人员**/
    @Transient
    private  String spFenName;

    @Column(name = "sp_createtime")
    private String spCreatetime;

    @Column(name = "sp_creator")
    private String spCreator;

    @Transient
    private String starttime;
    @Transient
    private String endtime;

    public String getSpUuids() {
        return spUuids;
    }

    public void setSpUuids(String spUuids) {
        this.spUuids = spUuids;
    }

    public String getStarttime() {
        return starttime;
    }

    public void setStarttime(String starttime) {
        this.starttime = starttime;
    }

    public String getEndtime() {
        return endtime;
    }

    public void setEndtime(String endtime) {
        this.endtime = endtime;
    }

    public String getSpFenName() {
        return spFenName;
    }

    public void setSpFenName(String spFenName) {
        this.spFenName = spFenName;
    }

    public String getSpCreator() {
        return spCreator;
    }

    public void setSpCreator(String spCreator) {
        this.spCreator = spCreator;
    }

    public String getSpStatusFen() {
        return spStatusFen;
    }

    public void setSpStatusFen(String spStatusFen) {
        this.spStatusFen = spStatusFen;
    }

    /**
     * @return sp_id
     */
    public Integer getSpId() {
        return spId;
    }

    /**
     * @param spId
     */
    public void setSpId(Integer spId) {
        this.spId = spId;
    }

    /**
     * @return sp_uuid
     */
    public String getSpUuid() {
        return spUuid;
    }

    /**
     * @param spUuid
     */
    public void setSpUuid(String spUuid) {
        this.spUuid = spUuid == null ? null : spUuid.trim();
    }

    /**
     * 获取导入批次
     *
     * @return sp_batch - 导入批次
     */
    public String getSpBatch() {
        return spBatch;
    }

    /**
     * 设置导入批次
     *
     * @param spBatch 导入批次
     */
    public void setSpBatch(String spBatch) {
        this.spBatch = spBatch == null ? null : spBatch.trim();
    }

    /**
     * 获取客户名称
     *
     * @return sp_name - 客户名称
     */
    public String getSpName() {
        return spName;
    }

    /**
     * 设置客户名称
     *
     * @param spName 客户名称
     */
    public void setSpName(String spName) {
        this.spName = spName == null ? null : spName.trim();
    }

    /**
     * 获取客户电话
     *
     * @return sp_phone - 客户电话
     */
    public String getSpPhone() {
        return spPhone;
    }

    /**
     * 设置客户电话
     *
     * @param spPhone 客户电话
     */
    public void setSpPhone(String spPhone) {
        this.spPhone = spPhone == null ? null : spPhone.trim();
    }

    /**
     * 获取跟踪人
     *
     * @return sp_recer - 跟踪人
     */
    public String getSpRecer() {
        return spRecer;
    }

    /**
     * 设置跟踪人
     *
     * @param spRecer 跟踪人
     */
    public void setSpRecer(String spRecer) {
        this.spRecer = spRecer == null ? null : spRecer.trim();
    }

    /**
     * 获取最新录音文件
     *
     * @return sp_record_url - 最新录音文件
     */
    public String getSpRecordUrl() {
        return spRecordUrl;
    }

    /**
     * 设置最新录音文件
     *
     * @param spRecordUrl 最新录音文件
     */
    public void setSpRecordUrl(String spRecordUrl) {
        this.spRecordUrl = spRecordUrl == null ? null : spRecordUrl.trim();
    }

    /**
     * @return sp_last_record
     */
    public String getSpLastRecord() {
        return spLastRecord;
    }

    /**
     * @param spLastRecord
     */
    public void setSpLastRecord(String spLastRecord) {
        this.spLastRecord = spLastRecord;
    }

    /**
     * @return sp_totle_record
     */
    public Integer getSpTotleRecord() {
        return spTotleRecord;
    }

    /**
     * @param spTotleRecord
     */
    public void setSpTotleRecord(Integer spTotleRecord) {
        this.spTotleRecord = spTotleRecord;
    }

    /**
     * 获取1:空号2:未接听3:关机4:停机 5有意向 6无意向7 不是本人8：再考虑
     *
     * @return sp_status - 1:空号2:未接听3:关机4:停机 5有意向 6无意向7 不是本人8：再考虑
     */
    public String getSpStatus() {
        return spStatus;
    }

    /**
     * 设置1:空号2:未接听3:关机4:停机 5有意向 6无意向7 不是本人8：再考虑
     *
     * @param spStatus 1:空号2:未接听3:关机4:停机 5有意向 6无意向7 不是本人8：再考虑
     */
    public void setSpStatus(String spStatus) {
        this.spStatus = spStatus == null ? null : spStatus.trim();
    }

    /**
     * @return sp_createtime
     */
    public String getSpCreatetime() {
        return spCreatetime;
    }

    /**
     * @param spCreatetime
     */
    public void setSpCreatetime(String spCreatetime) {
        this.spCreatetime = spCreatetime;
    }

    @Override
    public String toString() {
        return "CPhoneTask{" +
                "spId=" + spId +
                ", spUuid='" + spUuid + '\'' +
                ", spBatch='" + spBatch + '\'' +
                ", spName='" + spName + '\'' +
                ", spPhone='" + spPhone + '\'' +
                ", spRecer='" + spRecer + '\'' +
                ", spRecordUrl='" + spRecordUrl + '\'' +
                ", spLastRecord=" + spLastRecord +
                ", spTotleRecord=" + spTotleRecord +
                ", spStatus='" + spStatus + '\'' +
                ", spStatusFen='" + spStatusFen + '\'' +
                ", spFenName='" + spFenName + '\'' +
                ", spCreatetime='" + spCreatetime + '\'' +
                ", spCreator='" + spCreator + '\'' +
                ", starttime='" + starttime + '\'' +
                ", endtime='" + endtime + '\'' +
                '}';
    }
}